<template>
  <div>
    <button @click="a()">A</button>
    <Loading ref="loading"/>
  </div>
</template>

<script>
  import { mapActions , mapState,mapMutations} from 'vuex'
import Loading from '~/components/Loading.vue'
export default {
  components: { Loading },
  computed: {
      ...mapState({
        loading: state => state.loading.loading,
      })
    },
  methods:{
    a(){
      console.log("AA")
      // this.$store.commit('loading/SET_LOADING', true)
      // this.$refs.loading.start();
      this.$router.push("/mainPage/main")
    }
  }
}
</script>
<style lang="scss">

</style>
